/* 基于堆栈的队列 */

#include "queue_base_stack.h"

/* 测试用例 */
int main (void) 
{
	QUEUE* queue = queue_create ();

	int i;
	for (i = 0; i < 10; i++)
        {
		queue_push (queue, i);
        }
	while (! queue_empty (queue))
        {
		printf ("%d\n", queue_pop (queue));
        }

	queue_destroy (queue);
	return 0;
}
